Bastien Nocera [Wed, 17 Sep 2014 16:42:57 +0000 (18:42 +0200)]
wayland: Don't try to create a subsurface again
We already did that inside gdk_wayland_window_create_surface() that's
called 2 lines above.
https://bugzilla.gnome.org/show_bug.cgi?id=738912
Bastien Nocera [Tue, 14 Oct 2014 14:47:11 +0000 (16:47 +0200)]
gtkwidget: Fix typo in comment
Benjamin Otte [Tue, 21 Oct 2014 03:52:05 +0000 (05:52 +0200)]
css: Add "-gtk-icon-source: builtin"
... and make it the default. This takes over the meaning from "none" for
this property in that it draws the fallback builtin image.
"none" now literally means no image will be drawn.
Benjamin Otte [Tue, 21 Oct 2014 03:47:15 +0000 (05:47 +0200)]
stylecontext: fix icon-source extents computation
for the builtin image or invalid matrix case. We used to return invalid
memory in those cases. And that was not good.
Benjamin Otte [Tue, 21 Oct 2014 03:15:37 +0000 (05:15 +0200)]
render: We use CHECKED now, not ACTIVE
Update docs and custom rendering of checkmarks and radio buttons
Matthias Clasen [Tue, 21 Oct 2014 02:13:51 +0000 (22:13 -0400)]
GtkScrolledWindow: Add documentation
Document the new overlay scrolling APIs, and add some more
documentation for the other touch support: kinetic scrolling
and overshoot.
Matthias Clasen [Thu, 9 Oct 2014 21:03:52 +0000 (17:03 -0400)]
Port the overlayscroll example
Make the overlayscroll example use the overlay scrolling that is
now built into GtkScrolledWindow, instead of the manual prototype.
Matthias Clasen [Thu, 9 Oct 2014 03:37:29 +0000 (23:37 -0400)]
Add some overlay scrollbar theming to Adwaita
Matthias Clasen [Thu, 9 Oct 2014 03:34:32 +0000 (23:34 -0400)]
GtkScrolledWindow: Add overlay scrollbars
This commit adds a mode to GtkScrolledWindow in which it puts
narrow, auto-hiding scrollbars over the content, instead of
allocating room for the scrollbars outside of the content. We
use traditional scrollbars if we find a mouse or if overlay
scrolling has explicitly turned off.
For test purposes, GTK_TEST_TOUCHSCREEN can be used to get
overlay scrolling even in the presence of a mouse. The
environment variable GTK_OVERLAY_SCROLLING can also be used
to force overlay scrolling on or off.
Matthias Clasen [Sun, 5 Oct 2014 03:37:11 +0000 (23:37 -0400)]
Add an experiment for overlay scrollbars
This is just meant as a prototype for how we can show a
scroll position indicator for touch. This uses GTK_POLICY_EXTERNAL
to hide the scrolled windows scrollbar while still allowing
scrolling.
Matthias Clasen [Sun, 5 Oct 2014 21:29:32 +0000 (17:29 -0400)]
GtkRange: Add a style class during dragging
This will be used to identify a scrollbar is being dragged - we
don't actually need the style class; another way to keep track
of the dragging status would be ok too.
Benjamin Otte [Tue, 21 Oct 2014 00:06:46 +0000 (02:06 +0200)]
stylecontext: Handle querying the wrong state better
When a getter function (like get_color()) is called and the passed in
state doesn't match the current state returned via get_state(), we used
to do a trick: We called save()/set_state() on the context before
getting the values.
Unfortunately, since
3a337156d11a86c7a88f1f30a09276fdf6f63008 this
has the unfortunate side effect that it also creates a child element.
This breaks various old codebases (spinbutton has been fixed in
998feeb2bc3e37275cfe915e128179d2704ca9c8, Webkit is fixed in
https://bugs.webkit.org/show_bug.cgi?id=137803 ) unfortunately.
So instead, look up the values manually ensuring that no child element
is created but the correct state is used.
Benjamin Otte [Mon, 29 Sep 2014 01:15:44 +0000 (03:15 +0200)]
stylecontext: Return a ref in lookup_values_for_state
This will be necessary when we stop caching values for lookups with the
"wrong" state.
Benjamin Otte [Tue, 21 Oct 2014 00:29:03 +0000 (02:29 +0200)]
computedvalues: Add to_string() and print() functions
The functions are unused. But they are very convenient to use from a
debugger, if you know what I mean...
Benjamin Otte [Sun, 19 Oct 2014 19:04:48 +0000 (21:04 +0200)]
stylecontext: Don't copy CSS values on context_save()
Keeping them is a bad idea now where the widget paths are actually
changed by a save(). And almost all of the time, state or style classes
will be changed anyway.
Looking them up again is just a hash table lookup anyway.
Benjamin Otte [Sat, 18 Oct 2014 04:06:28 +0000 (06:06 +0200)]
stylecontext: Use node declaration in hash
Don't use the StyleInfo anymore.
Benjamin Otte [Sat, 18 Oct 2014 03:45:21 +0000 (05:45 +0200)]
stylecontext: Split out functionality into custom object
GtkCssNodeDeclaration is a new struct with copy-on-write semantics.
It encapsulated the properties used to define a node in the CSS tree.
The idea is to use it in various places for caching, in particular as
key in hash tables.
Matthias Clasen [Tue, 21 Oct 2014 00:54:31 +0000 (20:54 -0400)]
widget-factory: Example for edge-overshot
For extra fun, make some noise.
Matthias Clasen [Mon, 20 Oct 2014 22:44:56 +0000 (18:44 -0400)]
widget-factory: Add a wide-handle example
Andika Triwidada [Mon, 20 Oct 2014 18:44:26 +0000 (18:44 +0000)]
Updated Indonesian translation
Carlos Garnacho [Sun, 12 Oct 2014 12:29:24 +0000 (14:29 +0200)]
scrolledwindow: Add ::edge-overshot signal
This signal is emitted whenever user scrolling hits the overshoot
edge in the given direction. May be useful to add "reload" or "load
more" behaviors in apps.
https://bugzilla.gnome.org/show_bug.cgi?id=738534
Lapo Calamandrei [Mon, 20 Oct 2014 13:22:42 +0000 (15:22 +0200)]
Adwaita: GtkPlacesSidebar treeview text color fix
With my latest changes we have a darker text color for views and
entries (which I assume are content), the places sidebar is totally
chrome though so it needs the chrome text color back.
Daniel Mustieles [Mon, 20 Oct 2014 13:08:33 +0000 (15:08 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 20 Oct 2014 13:01:35 +0000 (15:01 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 20 Oct 2014 11:32:42 +0000 (07:32 -0400)]
GtkPaned: Add a "wide-handle" property
This can be used by applications to indicate that a paned is expected
to be actively used by the users for configuring the UI, and needs
a prominent handle.
https://bugzilla.gnome.org/show_bug.cgi?id=738860
Matthias Clasen [Mon, 20 Oct 2014 03:30:49 +0000 (23:30 -0400)]
Add GtkGLArea fully to docs
It was missing from the type list.
Matthias Clasen [Mon, 20 Oct 2014 03:28:34 +0000 (23:28 -0400)]
Improve tooltip-text/markup docs
Clarify priorities between the two,
https://bugzilla.gnome.org/show_bug.cgi?id=681185
Matthias Clasen [Mon, 20 Oct 2014 03:16:06 +0000 (23:16 -0400)]
GtkAboutDialog: Don't shout
Don't use all-caps in the UI - it looks scary.
https://bugzilla.gnome.org/show_bug.cgi?id=671138
Matthias Clasen [Mon, 20 Oct 2014 02:51:21 +0000 (22:51 -0400)]
GtkTooltip: Move nonexported API to a private header
This is our standard practice nowadays.
Matthias Clasen [Mon, 20 Oct 2014 02:42:49 +0000 (22:42 -0400)]
GtkToggleButton: Move nonexported API to a private header
This is our standard practice nowadays.
Matthias Clasen [Mon, 20 Oct 2014 02:33:24 +0000 (22:33 -0400)]
Deprecate gtk_settings_install_property APIs
These are not useful outside GTK+.
Matthias Clasen [Mon, 20 Oct 2014 02:07:19 +0000 (22:07 -0400)]
GtkSpinButton: Simplify code
No need to explicitly specify a parser function, it will be
correctly guessed from the property type.
Matthias Clasen [Mon, 20 Oct 2014 02:06:37 +0000 (22:06 -0400)]
GtkMenuItem: Simplify code
No need to explicitly specify a parser function, it will be
correctly guessed from the property type.
Matthias Clasen [Mon, 20 Oct 2014 01:22:02 +0000 (21:22 -0400)]
Deprecate some GtkSettings api
The gtk_settings_set_...property functions don't really add
anything over g_object_set(), and we never documented them.
Matthias Clasen [Mon, 20 Oct 2014 00:47:05 +0000 (20:47 -0400)]
Clarify GtkSettings documentation
Just recommend g_object_set to override settings. The
gtk_settings_set_..._property functions don't really add
any value.
Matthias Clasen [Mon, 20 Oct 2014 00:03:58 +0000 (20:03 -0400)]
testfilechooser: Test the preview again
There is code in there to show a preview, use it.
Matthias Clasen [Mon, 20 Oct 2014 00:03:42 +0000 (20:03 -0400)]
Forgotten file
Matthias Clasen [Sun, 19 Oct 2014 21:54:28 +0000 (17:54 -0400)]
GtkFileChooser: Make preview update more understandable
Implement Federico's suggestion:
In single-selection mode, just use the selected row,
In multi-selection mode, use the cursor row as long as it is
in the selection.
https://bugzilla.gnome.org/show_bug.cgi?id=154709
Matthias Clasen [Sun, 19 Oct 2014 02:12:54 +0000 (22:12 -0400)]
Add a a drop-in test for the GtkBuilder parser
Piotr Drąg [Sat, 18 Oct 2014 21:45:21 +0000 (23:45 +0200)]
Updated Polish translation
Thomas Lange [Sat, 18 Oct 2014 20:53:03 +0000 (22:53 +0200)]
aboutdialog: Mark strings as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=730893
Sébastien Wilmet [Sat, 18 Oct 2014 16:51:56 +0000 (18:51 +0200)]
docs: add missing symbol in GtkTextView
Sébastien Wilmet [Sat, 18 Oct 2014 12:47:10 +0000 (14:47 +0200)]
docs: documentation for GtkTextBufferClass
It'll most probably be more useful in the near future.
Matthias Clasen [Sat, 18 Oct 2014 17:19:21 +0000 (13:19 -0400)]
Fix the build
Matthias Clasen [Sat, 18 Oct 2014 16:53:30 +0000 (12:53 -0400)]
Fix a few typos
Matthias Clasen [Sat, 18 Oct 2014 16:42:29 +0000 (12:42 -0400)]
GtkWindow: Add a getter for the custom titlebar
This is needed for the glade integration of CSD windows.
Matthias Clasen [Sat, 18 Oct 2014 16:40:18 +0000 (12:40 -0400)]
Work around a pkg-config bug
It doesn't report -I${prefix}/include in cflags, even if .pc
files explicitly put it there. This was breaking the build
outside of a jhbuild shell when libepoxy is in the jhbuild tree
but not in /usr.
Matthias Clasen [Sat, 18 Oct 2014 16:28:42 +0000 (12:28 -0400)]
Some documentation updates
Mention libepoxy in various places as a new dependency, and also
mention Wayland in the build documentation.
Lapo Calamandrei [Sat, 18 Oct 2014 16:02:20 +0000 (18:02 +0200)]
Adwaita: darken a tiny bit more bright variant background color
Lapo Calamandrei [Sat, 18 Oct 2014 14:57:39 +0000 (16:57 +0200)]
Adwaita: add back text color.
See https://bugzilla.gnome.org/show_bug.cgi?id=726316 for details.
Lapo Calamandrei [Sat, 18 Oct 2014 14:29:19 +0000 (16:29 +0200)]
Adwaita: comment exported colors
Baurzhan Muftakhidinov [Sat, 18 Oct 2014 00:36:19 +0000 (00:36 +0000)]
Updated Kazakh translation
Carlos Garnacho [Fri, 17 Oct 2014 19:12:44 +0000 (21:12 +0200)]
gtkgesturesingle: Unset button/sequence if parent handle_event failed
There are legit reasons for GtkGesture::handle_event to return FALSE,
GtkGestureSingle objects should be unsetting the current button/sequence
if that happens, in order to avoid inconsistent states.
https://bugzilla.gnome.org/show_bug.cgi?id=738591
Lapo Calamandrei [Fri, 17 Oct 2014 18:36:25 +0000 (20:36 +0200)]
Adwaita: darkened a tiny bit bright variant background
Trying to differentiate a bit more the focused window from the
backdrop ones.
Lapo Calamandrei [Fri, 17 Oct 2014 18:09:17 +0000 (20:09 +0200)]
Adwaita: use $backdrop_fg_color where it should
.background:backdrop was not using that one so some labels didn't
look right in backdrop.
Lapo Calamandrei [Fri, 17 Oct 2014 18:03:17 +0000 (20:03 +0200)]
Adwaita: dimmed backdrop foreground color
To make focused window more evident.
Matthias Clasen [Fri, 17 Oct 2014 17:59:39 +0000 (13:59 -0400)]
GtkWindow: Avoid an early exit
When gtk_window_set_titlebar (win, NULL) is called, we were taking
an early exit and forgot to re-map the window. This does not normally
happen in practice, but glade is about to get a 'csd' switch which
lets one toggle back and forth between titlebar and no titlebar.
Matthias Clasen [Fri, 17 Oct 2014 01:48:11 +0000 (21:48 -0400)]
GtkEntry: plug a small memleak
GtkEntry was leaking a pango attribute list, if one was set.
Lapo Calamandrei [Thu, 16 Oct 2014 18:04:04 +0000 (20:04 +0200)]
Adwaita: fix stack-switcher button outline offset
See https://bugzilla.gnome.org/show_bug.cgi?id=738636
Benjamin Otte [Thu, 16 Oct 2014 15:00:20 +0000 (17:00 +0200)]
spinbutton: Set the correct state on the button contexts
With the recent save-is-child changes, using
gtk_style_context_get_padding (context, different_state)
will now open a subelement.
This is not what we want, so we check the state whenever we get the
button contexts.
Marek Kasik [Thu, 16 Oct 2014 12:55:30 +0000 (14:55 +0200)]
Get media-col-default attribute correctly
Fix a typo which caused that "number-up-supported" and "media-col-default"
IPP attributes were not requested correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=725441
Lapo Calamandrei [Thu, 16 Oct 2014 12:36:23 +0000 (14:36 +0200)]
Adwaita: ease-out-quad in place of ease-out
Generally changed the transition timing function to ease-out-quad
which is described by cubic-bezier(0.25, 0.46, 0.45, 0.94), feels
better to me.
Lapo Calamandrei [Thu, 16 Oct 2014 12:22:20 +0000 (14:22 +0200)]
Adwaita: list row hover color
Now it's based of fg color, so the list row gets darker on the
bright variant and brighter on the dark variant, similarly to what
we do for spinbutton buttons.
Lapo Calamandrei [Thu, 16 Oct 2014 12:12:13 +0000 (14:12 +0200)]
Adwaita: tweak list row transition
Thanks to Carlos Soriano expertise.
Alexander Larsson [Thu, 16 Oct 2014 10:58:43 +0000 (12:58 +0200)]
X11: Fix crash in gdk_x11_gl_context_texture_from_surface
We need to look at the impl_window for the gl rendering, not
the subwindow we're rendering into.
Lapo Calamandrei [Thu, 16 Oct 2014 10:46:58 +0000 (12:46 +0200)]
Adwaita: avoid border clash on transitioning adiacent flat buttons
Flat buttons gets the button decoration on hover, while transitioning
the decorations of adiacent flat buttons are both shown (one fading in
and the other fading out) so the borders clashes, since normally there's
no spacing between them, to avoid it the transition on the normal state
is set to none and added back to the hover state, so the decoration
won't fade out. To make the transition more evident the duration is
increased.
Matthias Clasen [Thu, 16 Oct 2014 01:53:53 +0000 (21:53 -0400)]
widget-factory: Add a missing scrolled window
Matthias Clasen [Thu, 16 Oct 2014 01:42:12 +0000 (21:42 -0400)]
widget-factory: Add some vertical examples
This adds both a vertical toolbar and vertically linked buttons.
Benjamin Otte [Thu, 16 Oct 2014 01:31:30 +0000 (03:31 +0200)]
glarea: Display the error message when an error occurred
Simply center a PangoLayout with the message text.
Benjamin Otte [Thu, 16 Oct 2014 01:13:45 +0000 (03:13 +0200)]
gdk: Add GDK_DEBUG=nogl
This is mostly useful for fallback testing.
I suppose if people want finer grained GL ability testing, they can use
Mesa environment variables to tune things.
Lapo Calamandrei [Wed, 15 Oct 2014 18:41:19 +0000 (20:41 +0200)]
Adwaita: color treeview tree/grid lines
Tree lines are visible now, unfortunatelly grid lines do not react
to selected state so they are way too bright.
Matthias Clasen [Wed, 15 Oct 2014 18:41:42 +0000 (14:41 -0400)]
Avoid deprecation warnings
We don't really care if we use deprecated API inside deprecated
code, so just ignore the warning.
Matthias Clasen [Wed, 15 Oct 2014 18:37:25 +0000 (14:37 -0400)]
Revert "gtktrayicon-x11: Stop using set_double_buffered"
This reverts commit
4a72563c7b801052f4291a4757bd1011946677b9.
It turns out that this commit broke statusicons under Xfce when
not using a compositor.
https://bugzilla.gnome.org/show_bug.cgi?id=737986
Lapo Calamandrei [Wed, 15 Oct 2014 17:49:13 +0000 (19:49 +0200)]
Adwaita: fix colorchooser styling after latest gtk changes
...commenting stuff pretty accuratelly in the process, since the
widget is quite unobvious to figure out.
Benjamin Otte [Wed, 15 Oct 2014 15:18:26 +0000 (17:18 +0200)]
scrolledwindow: Don't set .frame on overshoot boxes
Benjamin Otte [Sun, 12 Oct 2014 21:43:48 +0000 (23:43 +0200)]
stylecontext: Make save/restore create a child CSS node
This is a change for how CSS is applied.
Previously, subelements (I'll take GtkEntry icons as an example) were
treated as having the same parent as the regular elements. So a selector
such as
.entry
would match an entry inside a window. But it'd also match the icon image
inside the entry. So CSS like
.entry { padding: 10px; }
would add 10px of padding to both the entry itself and to the icon image
inside the entry, so the icon would effective have 20px padding. To get
around that, one would have to unset it again like so:
.entry { padding: 10px; }
.entry.image { padding: unset; }
This is getting more and more of a problem as we make subelements
respect more properties that aren't inherited by default anyway, like
backgrounds and padding/margin/border.
This patch has one caveat though: It makes calling
gtk_style_context_save() the first time have an important side effect.
It's important to audit code to make sure it is only used for
subelements.
And last but not least, this patch is only useful if code unsets
parent's style classes that it doesn't want to apply any longer. Because
style classes are inherited by default (and I don't think we want to
change that), the example will still apply until the subelements no
longer contain the .entry style class.
Benjamin Otte [Sun, 12 Oct 2014 21:38:04 +0000 (23:38 +0200)]
stylecontext: Move next pointer out of GtkStyleInfo
Instead, keep a GSList in the style context.
Benjamin Otte [Sat, 11 Oct 2014 18:02:27 +0000 (20:02 +0200)]
stylecontext: Don't cache the root values
Those are the ones that are special and get animated. Caching them only
causes confusion.
Benjamin Otte [Sat, 11 Oct 2014 00:41:15 +0000 (02:41 +0200)]
stylecontext: Factor out a function
Carlos Garnacho [Sun, 12 Oct 2014 11:22:43 +0000 (13:22 +0200)]
scrolledwindow: Allow overshooting on scroll events
The overshoot visual notification is probably also nice to have in this
context.
https://bugzilla.gnome.org/show_bug.cgi?id=738533
Lars Uebernickel [Wed, 15 Oct 2014 14:15:35 +0000 (16:15 +0200)]
Add GDK_DEP_LIBS to demos and tests
Some of them depend on libepoxy now.
Matthias Clasen [Wed, 15 Oct 2014 03:59:51 +0000 (23:59 -0400)]
GtkPlacesSidebar: Don't leak an icon
Found in valgrind.
Matthias Clasen [Wed, 15 Oct 2014 03:59:25 +0000 (23:59 -0400)]
GtkFontChooserWidget: Plug several memleaks
These were showing up in valgrind.
Matthias Clasen [Wed, 15 Oct 2014 03:58:37 +0000 (23:58 -0400)]
GtkContainerAccessible: avoid resurrecting accessibles
When removing a child, we don't want to resurrect its
accessible needlessly.
Matthias Clasen [Wed, 15 Oct 2014 02:46:26 +0000 (22:46 -0400)]
Plug a memory leak
We were leaking cairo regions every time we draw.
Benjamin Otte [Wed, 15 Oct 2014 00:08:02 +0000 (02:08 +0200)]
render: Fix uninitialized variables
Refactoring for performance in
39097ea2da79fa1ce79fb291dc5588260e992a5f
caused border_width to be uninitialized when rendering border images.
https://bugzilla.gnome.org/show_bug.cgi?id=738483
Carlos Garnacho [Sun, 12 Oct 2014 12:01:03 +0000 (14:01 +0200)]
scrolledwindow: Simplify _gtk_scrolled_window_set_adjustment_value()
The two boolean arguments always received the same values, so wipe these
out. Likewise, the boolean return value is unused and sort of meaningless.
Carlos Garnacho [Tue, 14 Oct 2014 13:30:34 +0000 (15:30 +0200)]
window: unset menubar before unsetting focus on dispose()
If the menubar has an app-menu popover, and it is shown at the time of
disposing the window, it will attempt to transfer focus back to the
previous focus widget when undoing modality, even though the dispose()
code already did set_focus(NULL) previously.
At the time the popover is removed, there aren't many hints as to whether
the toplevel or the focus widget are being destroyed (ie. not still under
in_destruction), so just swap the order of these two calls.
For every other popover, this would all happen within dispose/destroy,
which is handled better.
Benjamin Otte [Tue, 14 Oct 2014 12:33:08 +0000 (14:33 +0200)]
tests: Make gtkgears compile without complaints
Benjamin Otte [Tue, 14 Oct 2014 12:32:57 +0000 (14:32 +0200)]
inspector: Add missing files
Benjamin Otte [Tue, 14 Oct 2014 12:01:42 +0000 (14:01 +0200)]
inspector: Replace reload with record
and when pressed, record instance counts at 1fps.
Benjamin Otte [Tue, 14 Oct 2014 11:51:09 +0000 (13:51 +0200)]
inspector: Add a graph cell renderer
... and use it to display graphs for how object counts changed.
Benjamin Otte [Tue, 14 Oct 2014 10:59:18 +0000 (12:59 +0200)]
inspector: Add a GraphData object for recording data
This way we can keep more data than just the 2 last values.
Benjamin Otte [Mon, 13 Oct 2014 08:20:29 +0000 (10:20 +0200)]
inspector: Kepp tree iter in type data
This way we don't have to clear/refill the model every time but can keep
the existing model and only update the values.
A nice side benefit is that running an update keeps the current selection.
Benjamin Otte [Mon, 13 Oct 2014 08:19:34 +0000 (10:19 +0200)]
inspector: Make all statistics columns visible always
Benjamin Otte [Mon, 13 Oct 2014 08:09:48 +0000 (10:09 +0200)]
inspector: Update all statistics in same place
Benjamin Otte [Mon, 13 Oct 2014 04:09:35 +0000 (06:09 +0200)]
inspector: increase type by right amount
It's a shift, so we better shift it!
Benjamin Otte [Mon, 13 Oct 2014 04:01:51 +0000 (06:01 +0200)]
inspector: Add type column to statistics
Rename old type column to "type name"
Benjamin Otte [Mon, 13 Oct 2014 03:30:33 +0000 (05:30 +0200)]
inspector: Split out a function
Piotr Drąg [Mon, 13 Oct 2014 18:21:09 +0000 (20:21 +0200)]
Updated POTFILES.in